home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 December
/
PCWorld_2006-12_cd.bin
/
domacnost a kancelar
/
rainlendar
/
Rainlendar-Lite-2.0.exe
/
scripts
/
hotkeys.lua
< prev
next >
Wrap
Text File
|
2006-08-27
|
1KB
|
50 lines
--
-- DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN WHEN YOU UPGRADE RAINLENDAR!
-- If you want to add new hotkeys put the scripts to another file and prefix
-- the functions with "Hotkey_".
--
-- When the hotkey is displayed in the options window the "Hotkey_"-prefix is
-- stripped from string as well as all '_'-chars. The names of the hotkeys can
-- also be localized.
--
function Hotkey_Next_Month()
Global_ShowMonth("+1")
end
function Hotkey_Previous_Month()
Global_ShowMonth("-1")
end
function Hotkey_Hide_Windows()
local listWindows = Rainlendar_GetWindows()
for key, value in pairs(listWindows) do
Rainlendar_HideWindow(value)
end
end
function Hotkey_Show_Windows()
local listWindows = Rainlendar_GetWindows()
for key, value in pairs(listWindows) do
Rainlendar_ShowWindow(value)
end
end
function Hotkey_Toggle_Windows()
local visible = false
listWindows = Rainlendar_GetWindows()
for key, value in pairs(listWindows) do
visible = visible or Rainlendar_IsWindowVisible(value)
end
if visible then
Hotkey_Hide_Windows()
else
Hotkey_Show_Windows()
end
end
function Hotkey_Refresh()
Rainlendar_Refresh()
end